﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DNA.Models.Research>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Importar
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Importar</h2>

    <script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>

    <% using(Html.BeginForm("Importar", "Research", FormMethod.Post, new { enctype = "multipart/form-data" }))
       { %>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Research</legend>
        <div class="editor-label">
            Arquivo XML de Pesquisas
        </div>
        <div class="editor-field">
            <input type="file" name="Pesquisas" />
        </div>

        <p>
            <input type="submit" value="Importar" />
        </p>
    </fieldset>
    <% } %>

    <div>
        <%: Html.ActionLink("Voltar", "Index") %>
    </div>

</asp:Content>
